package com.dementors.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;

import com.dementors.R;
import com.dementors.base.BaseActivity;
import com.dementors.data.API;
import com.dementors.view.MyHeaderView;

/**
 * Created by Administrator on 2015/12/4 0004.
 */
public class WebActivity extends BaseActivity {
    private WebView wv;
    private MyHeaderView mhv;
    private String bid;
    String text;
    @Override
    protected int provideContentViewId() {
        return R.layout.activity_web;
    }

    @Override
    protected void initView() {
        wv= (WebView) findViewById(R.id.wv);
//        mhv= (MyHeaderView) findViewById(R.id.mhv_web);
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected void initData() {
        WebSettings webSettings=wv.getSettings();
        webSettings.setJavaScriptEnabled(true);
        Intent intent=getIntent();
        bid=intent.getStringExtra("bid");
//        Log.i("oye", bid + "bidbid");
        wv.loadUrl(API.OVERSEA_WEB_DATA + bid);
    }

    @Override
    protected void getIntentData(Bundle saveInstance) {


    }

    @Override
    public void onClick(View v) {

    }
}
